package com.sys.log.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Data;

@Data
@TableName("sys_log")
public class SysLog extends Model<SysLog>{
	
  private static final long serialVersionUID = 1L;
	
  @TableId(value="id", type=IdType.AUTO)
  private Long id;
  
  @TableField("user_id")
  private Long userId;
  
  @TableField("user_name")
  private String userName;
  
  @TableField("user_type")
  private String userType;
  
  @TableField("class_method")
  private String classMethod;
  
  @TableField("client_info")
  private String clientInfo;
  
  @TableField("create_time")
  private String createTime;
  
  private String title;
  private String url;
  private String method;
  private String ip;
  private String host;
  private String params;
 
  
  @Override
  protected Serializable pkVal() {
	  return this.id;
 }
  

}
